package com.tensquare.notice.feign;

import com.tensquare.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author BAO
 * @version V1.0
 * @Package tensquare.notice.feign
 * @date 2020/12/4 23:18
 * @description:
 */
@FeignClient(value = "tensquare-article",fallback = Exception.class)
public interface ArticleFeignClient {

    /**
     * 根据ID查询文章
     * @param id
     * @return
     */
    @GetMapping("/article/findById/{id}")
    public Result findByProblemId(@PathVariable("id") String id);
}
